package com.dufang.Thread07Lock;

/**
 * @ClassName:test
 * @Description 测试类 lock锁
 * @Author Administrator
 * @Date 2025/7/7/007 20:20
 * @Version 1.0
 **/
public class test {
    public static void main(String[] args) {
        ThreadLock threadLock = new ThreadLock();

        new Thread(threadLock, "黛玉").start();
        new Thread(threadLock, "宝玉").start();
        new Thread(threadLock, "宝钗").start();
    }

}
